package net.onecloud.onecloud.adapter;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;

import net.onecloud.onecloud.R;
import net.onecloud.onecloud.model.ResultRecord;

import java.util.List;

/**
 * Created by zaizai on 16/7/31.
 */
public class RecordAdapter extends BaseQuickAdapter<ResultRecord.DataEntity> {

    public RecordAdapter() {
        super(R.layout.rv_items_record, null);
    }

    @Override
    protected void convert(BaseViewHolder baseViewHolder, ResultRecord.DataEntity dataEntity) {
        baseViewHolder.setText(R.id.m_rcampanys, dataEntity.getRcampany())
                .setText(R.id.m_rpost, dataEntity.getRpost())
                .setText(R.id.m_rdate, dataEntity.getRdate());
    }
}
